<include file="Public/min-header"/>
<section class="wrapper">
    <!-- Main content -->
        <section class="panel">
            <div class="panel-heading">
                <i class="icon-list"></i> 权限列表
            </div>
            <div class="panel-body">
                <div class="box-header">
        	        <nav class="navbar navbar-default">	                                 
        				<div class="collapse navbar-collapse">
        				    <div class="navbar-form form-inline">
                                <div class="form-group pull-right">
                                    <a href="{:U('System/edit_right')}" class="btn btn-submit"><i class="glyphicon glyphicon-plus"></i>添加</a>
                                    <a href="javascript:;" data-url="{:U('System/right_del')}" onclick="delAll(this,'right')" class="btn btn-danger"><i class="icon-trash"></i>删除</a>
                                </div> 
                            </div>       				            		          
        				</div>
        	        </nav>  
    	        </div>	        
                <div id="ajax_return">

                </div>
            </div>
        </section>
        
    <!-- /.content -->
</section>
<!-- /.content-wrapper -->
<script>
    $(document).ready(function(){
        ajax_get_table('search-form2',1);
    });

    // ajax 抓取页面
    function ajax_get_table(tab,page){
        cur_page = page; //当前页面 保存为全局变量
            $.ajax({
                type : "POST",
                url:"/index.php/system/ajaxright/p/"+page,//+tab,
                data : $('#'+tab).serialize(),// 你的formid
                success: function(data){
                    $("#ajax_return").html('');
                    $("#ajax_return").append(data);
                }
            });
    }
</script>
</body>
</html>